import request from '@/utils/request'

// 查询营地服务设施列表
export function listCampFacility(query) {
  return request({
    url: '/camp/campFacility/list',
    method: 'get',
    params: query
  })
}

// 查询营地服务设施详细
export function getCampFacility(cfId) {
  return request({
    url: '/camp/campFacility/' + cfId,
    method: 'get'
  })
}

// 新增营地服务设施
export function addCampFacility(data) {
  return request({
    url: '/camp/campFacility',
    method: 'post',
    data: data
  })
}

// 修改营地服务设施
export function updateCampFacility(data) {
  return request({
    url: '/camp/campFacility',
    method: 'put',
    data: data
  })
}

// 删除营地服务设施
export function delCampFacility(cfId) {
  return request({
    url: '/camp/campFacility/' + cfId,
    method: 'delete'
  })
}
